﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
//using AIStudio.Wpf.Block.ViewModels;
using AIStudio.Wpf.DiagramApp.Models;
using AIStudio.Wpf.DiagramDesigner;

namespace AIStudio.Wpf.DiagramApp.ViewModels
{
    internal class BlockViewModel : PageViewModel
    {
        public BlockViewModel(string title, string status, DiagramType diagramType) : base(title, status, diagramType)
        {

        }
        public BlockViewModel(string filename, DiagramDocument diagramDocument) : base(filename, diagramDocument)
        {
            
        }

        protected override void InitDiagramViewModel()
        {
            base.InitDiagramViewModel();

            DiagramViewModel.DiagramOption.LayoutOption.ShowGrid = false;
        }

        protected override void Init(bool initNew)
        {
            base.Init(initNew);

            //StartBlockItemViewModel start = new StartBlockItemViewModel(DiagramViewModel) { Left = 28, Top = 28 };
            //DiagramViewModel.Add(start);

            //WaitTimeBlockItemViewModel waittime = new WaitTimeBlockItemViewModel(DiagramViewModel) { Left = 28, Top = 28 };
            //DiagramViewModel.Add(waittime);

            //AddBlockItemViewModel add = new AddBlockItemViewModel(DiagramViewModel) { Left = 28, Top = 28 };
            //DiagramViewModel.Add(add);

            //KeyboardPressBlockItemViewModel keyboardPress = new KeyboardPressBlockItemViewModel(DiagramViewModel) { Left = 28, Top = 28 };
            //DiagramViewModel.Add(keyboardPress);
        }
    }
}
